import Index from './view/Index'
import { createBrowserRouter, Navigate, RouterProvider } from 'react-router-dom'

const routeData = [
  {
    path:"/",
    element:<Navigate to="/index"></Navigate>    
  },
  {
    path:"/index",
    element:<Index></Index>
  }
]

function App(){
  const data = createBrowserRouter(routeData)
  return <>
    <RouterProvider router={data}></RouterProvider>
  </>
}

export default App